package com.example.bdmanagerapplication

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
@Dao
interface PoiInfoDao {
    @Insert
    fun insertPoiInfo(bearingModel: PoiEntity): Long
    @Query("select * from POIENTITY")
    fun loadAllPoi(): List<PoiEntity>
    @Query("SELECT COUNT(*) FROM POIENTITY WHERE uid = :uid")
    fun existsByUid(uid: String): Int
}